package com.bmit.clusterspring.log;

import com.bmit.clusterspring.model.InnerLog;
import com.bmit.clusterspring.model.OuterLog;
import com.bmit.clusterspring.service.LogService;

public class SaveOuterLogThread implements Runnable {
    private LogService service;
    private OuterLog outerLog;

    public SaveOuterLogThread(LogService service, OuterLog outerLog) {
        this.service = service;
        this.outerLog = outerLog;
    }

    @Override
    public void run() {
        service.insertOLog(this.outerLog);
    }
}
